﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Horaires</title>
<link href="css/styles.css" rel="stylesheet" type="text/css"/>
<script>
function showsecondform() {
	document.getElementById('baseform').style.display='none';
	document.getElementById('secondform').style.display='block';
}
String.prototype.padLeft = function(strChar, intLength) {
	var str = this + '';
	while (str.length != intLength) {
		str = strChar + str;
	}
	return str;
}
function insertdefaulttime() {
	var now = new Date();
	var day = now.getDate().toString().padLeft('0', 2);
	var month = (now.getMonth()+1).toString().padLeft('0', 2);
	var year = now.getFullYear();
	document.getElementById('date').value = day+'/'+month+'/'+year;
	document.getElementById('datefrom').value = day+'/'+month+'/'+year;
	for(var i=0,n=document.getElementById('hourfrom').options.length;i<n;++i) {
		if(document.getElementById('hourfrom').options[i].value==now.getHours()+1) {
			document.getElementById('hourfrom').options[i].selected='selected';
			document.getElementById('starthour').options[i].selected='selected';
		}
	}
	for(var i=0,n=document.getElementById('hourfrom').options.length;i<n;++i) {
		if(document.getElementById('endhour').options[i].value==now.getHours()+2) {
			document.getElementById('endhour').options[i].selected='selected';
		}
	}
}
</script>
<script src="js/build.js" type="text/javascript"></script>
<script src="js/userinfos.js" type="text/javascript"></script>
<script src="js/flyout.js" type="text/javascript"></script>
<script src="js/xml.js" type="text/javascript"></script>
<script type="text/javascript">
var reservationdata = new xmlsource(5);
</script>
</head>
<body id="flyout0" onLoad="insertdefaulttime();myinfos.load();">
	<g:background id="mainbg" src="i/flyoutbg.png" style="position:absolute;left:0;top:0;z-index:-999;opacity:100;" />
	<div id="baseform" style="display:block">
		<h1 style="position:absolute;top:15px;left:30px">Rechercher un horaire&nbsp;:</h1>
		<div class="flyouttext" style="position:absolute;top:49px;left:22px;line-height:20px">
			<form name="flyoutform0">
				Pour la journée du&nbsp;:
				<span style="margin-left:45px">(jj/mm/aaaa)<input maxlength="20" type="text" value="" name="date" id="date" style="width:56px;margin-left:4px" /></span><br />
				Gare de départ&nbsp;:
				<span style="margin-left:68px">
					<select name="origine0" id="origine0">
					<option value="364">AIN MESRIA</option>
					<option value="173">AIN RAHMA</option>
					<option value="673">AIN RHELAL</option>
					<option value="475">AOUINET</option>
					<option value="221">B.BOU REKBA</option>
					<option value="317">B.MCHERGUA</option>
					<option value="633">BEJA</option>
					<option value="311">BIR KASSAA</option>
					<option value="711">BIZERTE</option>
					<option value="623">BORJ ETTOUMI</option>
					<option value="333">BOU ARADA</option>
					<option value="166">BOU ARKOUB</option>
					<option value="172">BOU FICHA</option>
					<option value="353">BOU ROUIS</option>
					<option value="642">BOU SALEM</option>
					<option value="464">CHAAL</option>
					<option value="671">CHAOUAT</option>
					<option value="316">CHEYLUS</option>
					<option value="363">DAHMANI</option>
					<option value="321">DEPIENNE</option>
					<option value="214">DOKHANE</option>
					<option value="351">EL AKHOUAT</option>
					<option value="335">EL AROUSSA</option>
					<option value="471">EL HAMADA</option>
					<option value="624">EL HERI</option>
					<option value="204">EL JEM</option>
					<option value="552">EL OUDIANE</option>
					<option value="174">ENFIDHA</option>
					<option value="411">FEJ TAMEUR</option>
					<option value="491">FOUNI</option>
					<option value="175">FRIGUIA PA</option>
					<option value="488">GABES</option>
					<option value="340">GAFOUR</option>
					<option value="510">GAFSA</option>
					<option value="462">GARGOUR</option>
					<option value="481">GHANNOUCH</option>
					<option value="653">GHARDIMAOU</option>
					<option value="810">GHOMRASSEN</option>
					<option value="371">GOURAIA</option>
					<option value="465">GRAIBA</option>
					<option value="163">GROMBALIA</option>
					<option value="154">HAMMAM LIF</option>
					<option value="222">HAMMAMET</option>
					<option value="805">JARZIS</option>
					<option value="130">JBEL JELLOUD</option>
					<option value="614">JEDEIDA</option>
					<option value="645">JENDOUBA</option>
					<option value="809">JERBA</option>
					<option value="183">KALAA KEBIRA</option>
					<option value="373">KALAA KHASBA</option>
					<option value="191">KALAA SGHIRA</option>
					<option value="202">KERKER</option>
					<option value="313">KHELIDIA</option>
					<option value="212">LA HENCHA</option>
					<option value="703">LA PECHERI</option>
					<option value="352">LE KRIB</option>
					<option value="355">LE SERS</option>
					<option value="401">LES SALINES</option>
					<option value="501">M.BOUZAIAN</option>
					<option value="181">M.D.BELOUAER</option>
					<option value="267">MAHDIA_GL</option>
					<option value="463">MAHRES</option>
					<option value="495">MAKNASSY</option>
					<option value="612">MANOUBA</option>
					<option value="801">MARETH</option>
					<option value="635">MASTOUTA</option>
					<option value="674">MATEUR</option> 
					<option value="803">MEDNINE</option> 
					<option value="625">MEJEZ ELBA</option>                                                                   
					<option value="522">METLAOUI</option>                                                                                                                   
					<option value="493">MEZZOUNA</option> 
					<option value="238">MONASTIR</option> 
					<option value="226">MREZKA</option> 
					<option value="224">NABEUL</option> 
					<option value="312">NASSEN</option> 
					<option value="223">OMAR KHAYE</option> 
					<option value="314">OUDNA</option> 
					<option value="652">OUED MELIZ</option> 
					<option value="372">OUED SARRA</option> 
					<option value="627">OUED ZARGA</option> 
					<option value="323">PONT FAHS</option> 
					<option value="215">SAKIET-ZIT</option> 
					<option value="502">SENED</option> 
					<option value="452">SFAX</option> 
					<option value="461">SIDI ABID</option> 
					<option value="336">SIDI AYED</option>
					<option value="182">SIDI BOU ALI</option>
					<option value="631">SIDI MIMEC</option>
					<option value="171">SIDI MTIR</option>
					<option value="672">SIDI OTHMA</option>
					<option value="661">SIDI SMAIL</option>
					<option value="472">SKHIRA</option>
					<option value="193">SOUSSE</option>
					<option value="811">TATAOUINE</option>
					<option value="621">TEBOURBA</option>
					<option value="692">TINJA</option>
					<option value="553">TOZEUR</option>
					<option value="354">TRIKA</option>
					<option value="120">TUNIS</option>
					<option value="504">ZANNOUCH</option>
					<option value="362">ZOUARINES</option>
					</select>
					<!--
					<input type="text" value="" name="origine0" id="origine0" style="width:120px" />
					-->
				</span>
				
				<br />
				
				Gare d'arrivée&nbsp;:
				<span style="margin-left:73px">
				<!--
				<input type="text" value="" name="destination0" id="destination0" style="width:120px" />
				-->
					<select name="destination0" id="destination0">
					<option value="364">AIN MESRIA</option>
					<option value="173">AIN RAHMA</option>
					<option value="673">AIN RHELAL</option>
					<option value="475">AOUINET</option>
					<option value="221">B.BOU REKBA</option>
					<option value="317">B.MCHERGUA</option>
					<option value="633">BEJA</option>
					<option value="311">BIR KASSAA</option>
					<option value="711">BIZERTE</option>
					<option value="623">BORJ ETTOUMI</option>
					<option value="333">BOU ARADA</option>
					<option value="166">BOU ARKOUB</option>
					<option value="172">BOU FICHA</option>
					<option value="353">BOU ROUIS</option>
					<option value="642">BOU SALEM</option>
					<option value="464">CHAAL</option>
					<option value="671">CHAOUAT</option>
					<option value="316">CHEYLUS</option>
					<option value="363">DAHMANI</option>
					<option value="321">DEPIENNE</option>
					<option value="214">DOKHANE</option>
					<option value="351">EL AKHOUAT</option>
					<option value="335">EL AROUSSA</option>
					<option value="471">EL HAMADA</option>
					<option value="624">EL HERI</option>
					<option value="204">EL JEM</option>
					<option value="552">EL OUDIANE</option>
					<option value="174">ENFIDHA</option>
					<option value="411">FEJ TAMEUR</option>
					<option value="491">FOUNI</option>
					<option value="175">FRIGUIA PA</option>
					<option value="488">GABES</option>
					<option value="340">GAFOUR</option>
					<option value="510">GAFSA</option>
					<option value="462">GARGOUR</option>
					<option value="481">GHANNOUCH</option>
					<option value="653">GHARDIMAOU</option>
					<option value="810">GHOMRASSEN</option>
					<option value="371">GOURAIA</option>
					<option value="465">GRAIBA</option>
					<option value="163">GROMBALIA</option>
					<option value="154">HAMMAM LIF</option>
					<option value="222">HAMMAMET</option>
					<option value="805">JARZIS</option>
					<option value="130">JBEL JELLOUD</option>
					<option value="614">JEDEIDA</option>
					<option value="645">JENDOUBA</option>
					<option value="809">JERBA</option>
					<option value="183">KALAA KEBIRA</option>
					<option value="373">KALAA KHASBA</option>
					<option value="191">KALAA SGHIRA</option>
					<option value="202">KERKER</option>
					<option value="313">KHELIDIA</option>
					<option value="212">LA HENCHA</option>
					<option value="703">LA PECHERI</option>
					<option value="352">LE KRIB</option>
					<option value="355">LE SERS</option>
					<option value="401">LES SALINES</option>
					<option value="501">M.BOUZAIAN</option>
					<option value="181">M.D.BELOUAER</option>
					<option value="267">MAHDIA_GL</option>
					<option value="463">MAHRES</option>
					<option value="495">MAKNASSY</option>
					<option value="612">MANOUBA</option>
					<option value="801">MARETH</option>
					<option value="635">MASTOUTA</option>
					<option value="674">MATEUR</option> 
					<option value="803">MEDNINE</option> 
					<option value="625">MEJEZ ELBA</option>                                                                   
					<option value="522">METLAOUI</option>                                                                                                                   
					<option value="493">MEZZOUNA</option> 
					<option value="238">MONASTIR</option> 
					<option value="226">MREZKA</option> 
					<option value="224">NABEUL</option> 
					<option value="312">NASSEN</option> 
					<option value="223">OMAR KHAYE</option> 
					<option value="314">OUDNA</option> 
					<option value="652">OUED MELIZ</option> 
					<option value="372">OUED SARRA</option> 
					<option value="627">OUED ZARGA</option> 
					<option value="323">PONT FAHS</option> 
					<option value="215">SAKIET-ZIT</option> 
					<option value="502">SENED</option> 
					<option value="452">SFAX</option> 
					<option value="461">SIDI ABID</option> 
					<option value="336">SIDI AYED</option>
					<option value="182">SIDI BOU ALI</option>
					<option value="631">SIDI MIMEC</option>
					<option value="171">SIDI MTIR</option>
					<option value="672">SIDI OTHMA</option>
					<option value="661">SIDI SMAIL</option>
					<option value="472">SKHIRA</option>
					<option value="193">SOUSSE</option>
					<option value="811">TATAOUINE</option>
					<option value="621">TEBOURBA</option>
					<option value="692">TINJA</option>
					<option value="553">TOZEUR</option>
					<option value="354">TRIKA</option>
					<option value="120">TUNIS</option>
					<option value="504">ZANNOUCH</option>
					<option value="362">ZOUARINES</option>
					</select>
				</span>
				<br />
				Départ à partir de&nbsp;:
				<span style="margin-left:112px">
				
				<select name="hourfrom" id="hourfrom">
					<option value="00">minuit</option>
					<option value="01">1h</option>
					<option value="02">2h</option>
					<option value="03">3h</option>
					<option value="04">4h</option>
					<option value="05">5h</option>
					<option value="06">6h</option>
					<option value="07">7h</option>
					<option value="08">8h</option>
					<option value="09">9h</option>
					<option value="10">10h</option>
					<option value="11">11h</option>
					<option value="12">12h</option>
					<option value="13">13h</option>
					<option value="14">14h</option>
					<option value="15">15h</option>
					<option value="16">16h</option>
					<option value="17">17h</option>
					<option value="18">18h</option>
					<option value="19">19h</option>
					<option value="20">20h</option>
					<option value="21">21h</option>
					<option value="22">22h</option>
					<option value="23">23h</option>
				</select></span>
			</form>
		</div>
		
    <img src="i/navBack.png"  style="position:absolute;left:206px;top:139px">
	<div class="button">
			<a href="javascript:reservationdata.prepareuri();">&gt;&nbsp;Valider</a>
	</div>
	
	
	<div id="errormessage" style="display:none"><p id="errctt"></p></div>
</body>
</html>